package com.my.mvvmrapid.ui.main.fragment.homewan.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.my.mvvmrapid.R;
import com.my.mvvmrapid.entity.ArticleTop;
import com.my.mvvmrapid.entity.Hotkey;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Collection;
import java.util.List;

public class ArticleTopAdapter extends BaseQuickAdapter<ArticleTop, BaseViewHolder> {

    public ArticleTopAdapter() {
        super(R.layout.item_list);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, ArticleTop articleTop) {
        baseViewHolder.setText(R.id.tvContent, articleTop.getTitle());
    }

    @Override
    public void setList(@Nullable Collection<? extends ArticleTop> list) {
        super.setList(list);
    }
}
